﻿@model IEnumerable<WebUI.Models.aspnet_Users>

@{
    ViewBag.Title = "UserList";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="catalog-title">医生信息管理</div>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            医生
        </th>
        <th>
            医院
        </th>
        <th>
            专业
        </th>
        <th>
            帐号状态
        </th>
        <th>性别</th>
        <th>手机</th>
        <th>操作</th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Hospital.HospName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Department.DepName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AccountStatusRef.OptionTitle)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Gender)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MobileAlias)
        </td>
        <td>
            @Html.ActionLink("修改", "Edit", new { id=item.UserId }) |
            @Html.ActionLink("删除", "Delete", new { id=item.UserId })
        </td>
    </tr>
}

</table>
